<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Team Bonus Wizard</title>
<link href="/css/template.css" rel="stylesheet" type="text/css" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui-1.8.21.custom.min.js"></script>
<script language ="javascript"> 

</script>

</head>

<body style="font-family:Arial, Helvetica, sans-serif">
<h1>Team Bonus Wizard</h1>
<?php $stfBonus = new Model_Payroll_Staffbonus();?>
<form action = "" method = "post">
<h2>Please choose cycle</h2>
	<select id = "cycle" name = "cycle" >
		<option selected="selected"  value = "" disabled>Please Select</option>
		<?php foreach($this->cycle as $k => $v){
				$bonusCheck = $stfBonus->listPeriodBonus($v[0], $v[1])?>
		<option value = "<?php echo $v[0];?>:<?php echo $v[1];?>" <?php if(!empty($bonusCheck)){?>disabled<?php }?>><?php echo $v[0];?> ~ <?php echo $v[1];?>( <?php echo $k + 1;?> ) </option>
		<?php }?>
	</select>
	
	<br/>
	<br/>
	<input type = "submit" id = "next" name = "next" value = "Next" ></input><br/><br/>
	<input type = "submit" id = "jump" name = "jump" value = "Jump To All Summary Page"></input>
</form>


</body>
</html>
